package com.ay.weixin.fdc.boss.customer.event;

import java.io.IOException;

import javax.servlet.ServletException;

import org.lizar.controller.Event;
import org.lizar.controller.loader.EventLoader;

public class Logout extends Event {

	
	@Override
	public void init_property() throws Exception {
		
	}

	@Override
	public String default_handling_path() {
		return "/customer/logout";
	}

	@Override
	public void handle(EventLoader el) throws ServletException, IOException {
		el.removeSessionAttr("customer");
		el.response_to_root("/customer/login/");
	}

}
